﻿using Nasty.Core.Attributes;
using Nasty.Core.Entity;
using Newtonsoft.Json;
using SqlSugar;

namespace Nasty.QuartzModule.QuartzTask
{
    [SugarTable("SysQuartzTaskLog", TableDescription = "定时任务日志")]
    public class QuartzTaskLog : StandardEntity<QuartzTaskLog>
    {
        /// <summary>
        /// 任务Id
        /// </summary>
        [NastyColumn(ColumnName = "TaskId", ColumnDescription = "任务Id", Required = true)]
        public string? TaskId { get; set; }

        /// <summary>
        /// 结果
        /// </summary>
        [NastyColumn(ColumnName = "Result", ColumnDescription = "结果", Required = true, Length = 3000)]
        public string? Result { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Remark", IsNullable = true, ColumnDescription = "备注")]
        public string? Remark { get; set; }
    }
}
